﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace B2B.Views
{
    public partial class ProductImage : ChildWindow
    {
        public BitmapImage Image { get; set; }

        public ProductImage()
        {
            InitializeComponent();
            this.Loaded += ProductImage_Loaded;
        }

        void ProductImage_Loaded(object sender, RoutedEventArgs e)
        {
            pic.Source = Image;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}

